how to create custom assertion